package control;

import System.MainControl;
import System.SysMode;
import System.SystemObject;

/**this class change exam status of block or unblock*/
public class BlockFormControl extends abstractControl
{
	/**holds the requested information from the data base*/
	private SystemObject container;
	@Override
	public boolean sendToServer(Object obj)
	{
		return false;
	}
	
	/**
	 * change exam status of block or unblock
	 * @param obj :contains studentID information
	 * @return systemObject with a message ,what is the new exam status
	 */
	public SystemObject changBlock(Object obj)
	{
		container = new SystemObject(obj,SysMode.changParaentBlock);
		MainControl.client.send(container);
		container = (SystemObject) MainControl.client.getResult();
		return container;
	}

}
